﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    [Table("AlarmGroup")]
    public class AlarmGroup
    {
        [Key]
        public int AlarmGroupId { get; set; }//Int AUTO_INCREMENT PRIMARY KEY 报警组Id（全局唯一）
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码
        public string? AlarmGroupName { get; set; }//Varchar(50) 报警组名称
        public int DeviceTypeId { get; set; }//int FK:设备类型Id
        public int AlarmModelId { get; set; }//Int FK：报警模型Id
        public string? Remark { get; set; }//Varchar(50) 备注
        public string? ExtData { get; set; }//json 扩展数据


        public DateTime? BuildTime { get; set; }//Datetime    建档时间
        public DateTime? EditTime { get; set; }//Datetime 最后编辑时间
        public string? Operator { get; set; }//Varchar(50) 操作员名称
    }
}
